import React from 'react'
import { RouterProvider } from 'react-router-dom'
import { Provider } from 'react-redux'
import router from './router/index'
import store from './store'
import 'normalize.css'
import '@/styles/index.less'

export default function App({ initialStore }) {
  return (
    <Provider store={initialStore || store}>
      <RouterProvider router={router} />
    </Provider>
  )
}